package mushystuff.dtb.ws.endpoint;

import mushystuff.dtb.core.model.UserStory.Estimate;
import mushystuff.dtb.core.model.UserStory.Priority;
import mushystuff.dtb.core.service.ProductService;

public class BacklogServiceEndpoint {

    private ProductService productService;

	public BacklogServiceEndpoint(ProductService productService) {
		this.productService = productService;
    }
    
    public String[] getEstimates() {
    	Estimate[] estimatesArray = Estimate.values();
    	String[] estimates = new String[estimatesArray.length];
    	for(int i=0; i< estimatesArray.length; i++) {
    		estimates[i] = estimatesArray[i].name();
    	}
    	return estimates;
    }
    
    public String[] getPriorities() {
    	Priority[] prioritiesArray = Priority.values();
    	String[] priorities = new String[prioritiesArray.length];
    	for(int i=0; i< prioritiesArray.length; i++) {
    		priorities[i] = prioritiesArray[i].name();
    	}
    	return priorities;
    }
}
